package com.crape.topic.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.crape.common.exceptions.DAOException;
import com.crape.common.ibatis.SqlMapClientDaoSupportEx;
import com.crape.common.model.ArticleLabelRef;
import com.crape.topic.dao.IArticleLabelRefDAO;

@Service
public class ArticleLabelRefDAOImpl extends SqlMapClientDaoSupportEx implements IArticleLabelRefDAO {

	@Override
	public void insertArticleLabelRef(List<ArticleLabelRef> labelRefs) throws DAOException {
		if (labelRefs == null || labelRefs.isEmpty()) {
			return;
		}
		this.insertBatch("insertArticleLabelRef", labelRefs);
	}

	@Override
	public void deleteArticleLabelRef(Long articleid) throws DAOException {
		if (articleid == null) {
			return;
		}
		this.delete("deleteArticleLabelRef", articleid);
	}

}
